package coupon

import (
	sqlc "bp/db/sqlc"
	"bp/internal/service/com/stater"
	// "bp/internal/util"
	"context"
)

func (s *CouponMWebApiImp) AsyncNotifyMemberGotCoupon(ctx context.Context, memberCouponPtr *sqlc.MemberCoupon, distributionID int64){
	n := &stater.NMemberGotCoupon{
		CouponID:       memberCouponPtr.CouponID,
		MemberID:       memberCouponPtr.MemberID,
		DistributionID: distributionID,
	}
	chNotify := s.comHub.StaterService.GetMemberGotCouponStatWorker()
	chNotify <- n
}
